package com.wHitE.pojo;

import java.util.Date;

public class Book {
    private int id, quantity;
    private double price;
    private String name, coverImg, author, uploader;
    private Date updateTime;

    public Book() {
    }

    public Book(double price, String name, String coverImg, String author, String uploader, int id, int quantity, Date updateTime) {
        this.id = id;
        this.quantity = quantity;
        this.price = price;
        this.name = name;
        this.coverImg = coverImg;
        this.author = author;
        this.uploader = uploader;
        this.updateTime = updateTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getUploader() {
        return uploader;
    }

    public void setUploader(String uploader) {
        this.uploader = uploader;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Book{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", coverImg='" + coverImg + '\'' +
                ", author='" + author + '\'' +
                ", uploader='" + uploader + '\'' +
                ", id=" + id +
                ", quantity=" + quantity +
                ", updateTime=" + updateTime +
                '}';
    }
}
